/*
 * @Author: your name
 * @Date: 2021-05-08 10:02:07
 * @LastEditTime: 2021-05-12 12:21:51
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \after-end\app\controller\user.js
 */
/*
 * @Author: your name
 * @Date: 2021-05-08 10:02:07
 * @LastEditTime: 2021-05-08 10:02:31
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \after-end\app\controller\user.js
 */
'use strict';

const Controller = require('egg').Controller;

class UserController extends Controller {

    //后台管理用户注册
    async regisert() {
        const { ctx } = this;
        const data = await ctx.service.user.regisert();
        ctx.body = data;
    }

    //后台管理用户登录
    async login() {
        const { ctx } = this;
        const data = await ctx.service.user.login();
        ctx.body = data;
    }

    //后台管理用户列表
    async fandUserTable() {
        const { ctx } = this;
        const data = await ctx.service.user.fandUserTable();
        ctx.body = data;
    }
}

module.exports = UserController;